package com.yanqu.road.server.cmd.activity.commonteam.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.CommonGuessProto;
import com.yanqu.road.pb.activity.CommonTeamProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.CmdApi;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.guess.CommonGuessModule;
import com.yanqu.road.server.manger.activity.commonteam.CommonTeamMgr;
import com.yanqu.road.server.protocol.ClientProtocol;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_COMMON_TEAM_CREATE_TEAM_FROM_CROSS,desc = "通用组队-跨服返回-创建队伍")
public class CommonTeamCreateTeamFromCrossCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        CommonTeamProto.CommonTeamCreateTeamRespMsg reqMsg = CommonTeamProto.CommonTeamCreateTeamRespMsg.parseFrom(packet.getBytes());
        CommonTeamMgr.createTeamFromCross(player, reqMsg);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
